/**删除2.txt文件 */
const {unlink} = require("node:fs/promises");
const path = require("path");

let filePath = path.join(__dirname,"2.txt");

(async function(mypath){
    let result = await unlink(mypath);
    console.log(result);
})(filePath)